//
//  SHKTestVC.m
//  BabyBluetoothAppDemo
//
//  Created by 宋宏康 on 2020/5/17.
//  Copyright © 2020 刘彦玮. All rights reserved.
//

#import "SHKTestVC.h"
#import "SHKPeripheralManager.h"
#import "SHKCentralManager.h"

@interface SHKTestVC ()
@property (nonatomic, strong) SHKCentralManager *manager;

@end

@implementation SHKTestVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.manager = [[SHKCentralManager alloc] init];
    
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.manager startScan];
    });
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.manager writeData:10];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
